import unittest

from Search import BingPage


class TestBing(unittest.TestCase):
    def setUp(self):
        self.url = "http://cn.bing.com"
        self.content = "习主席美国之行"
        self.BingSearch = BingPage()

    def test_Bing(self):
        self.BingSearch.open(self.url)
        self.BingSearch.search_content(self.content)
        self.BingSearch.search_click()

    def tearDown(self):
        self.BingSearch.quit()


if __name__ == "__main__":
    unittest.main(verbosity=2)
